<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>List of Bbss</title>
    </head>
    <body>
        <h1>List of bbss</h1>
        <p>Here you can see the list of the bbss, edit them, remove or update.</p>
        <table border="1px" cellpadding="0" cellspacing="0" >
            <thead>
                <tr>
                    <th width="10%">bid</th><th width="15%">Title</th><th width="10%">Keyword</th><th width="10%">actions</th>
                </tr>
            </thead>
            <tbody>
                <c:forEach var="bbs" items="${bbss}">
                    <tr>
                        <td>${bbs.bid}</td>
                        <td>${bbs.title}</td>
                        <td>${bbs.keyword}</td>
                        <td>
                            <a href="${pageContext.request.contextPath}/bbs/edit/${bbs.bid}">Edit</a><br/>
                            <a href="${pageContext.request.contextPath}/bbs/delete/${bbs.bid}">Delete</a><br/>
                        </td>
                    </tr>
                </c:forEach>
            </tbody>
        </table>

        <p><a href="${pageContext.request.contextPath}/index.html">Home page</a></p>

    </body>
</html>